const path = require('path')

function resolve(dir) {
    return path.join(__dirname, dir)
}

module.exports = {
    lintOnSave:false,
    publicPath: './',
    chainWebpack:(config)=>{
        config.resolve.alias
            .set('@',resolve('src'))
    },
    devServer: {
        open: process.platform === 'vue',
        host: 'localhost',
        port: 8083,
        proxy: {
            '/ramoEam/*': {    // 只要指向/api/的请求，都会自动代理到下面的target的地址
                target: "http://localhost:8080",     //对方服务器地址
                secure: false,
                changeOrigin:true
            }
        }

    }
}